#ifndef UTILWIDGET_H
#define UTILWIDGET_H

#include "Common.h"
#include "SingletonTmpl.h"

class UtilWidget : public Single_T<UtilWidget>
{
public:
    enum POSITION{
        LeftTOP,
        LeftCenter,
        LeftBottom,
        HVCenter,
        RightTOP,
        RightCenter,
        RightBottom
    };
    void setPosition(QWidget *parents, UtilWidget::POSITION position);
    QIcon StdIcon(QStyle::StandardPixmap stdIcon);

private:
    SinglePri(UtilWidget);
    void ToCenter(QWidget *parents);
    void ToRight(QWidget *parents, Qt::Alignment alignment = Qt::AlignVertical_Mask);
    void ToLeft(QWidget *parents,Qt::Alignment alignment = Qt::AlignVertical_Mask);
};

#endif // UTILWIDGET_H
